function loadChapterReport(target)
{
	Packages.system.mlf.GateKeeper.updateDynamicPortlet(target._parent, "app/vo/ChapterReport.xml");
	dynamicPortletArr.chapterList="chapterReport";
}

function confirmChapterReport()
{
	var type=Packages.system.utils.TextUtil.getValue("reportTypeValue", this._name);
	var subject=Packages.system.utils.TextUtil.getValue("reportSubjectValue", this._name);
	var body=Packages.system.utils.TextUtil.getValue("reportBodyValue", this._name);
	
	var obj:Object=new Object();
	obj.memberId=Packages.model.UserProfile.data.memberId+"";
	obj.subject=subject;
	obj.body=body;
	obj.abstract=type;
	obj.uuid=getUuid2Commit();
	var data:Object=new Object();
	// data.path=evt.target._parent;
	data.name="BookSpecial";
	data.container="chapterListContainer";
	data.oper="errorReportCreate";
	data.uri="app/content/bookPage/BookSpecial.xml";
	data.returnPath="loadChapterList";
	data.dynamicPortlet=dynamicPortletArr.chapterList;

	dynamicPortletArr.chapterList="commonRemotingResult";

	Packages.modula.RequestCommand.request("REMOTING", "errorReportCreate", obj, Packages.model.vo.CommonRemotingResultView, "normal", this, data);
}

function onChapterReportInit()
{
	var evtTargetArr:Array=new Array();
	evtTargetArr.push(Packages.system.mlf.GateKeeper.scanElement(this._name, "reportConfirmSpot"));
	evtTargetArr.push(Packages.system.mlf.GateKeeper.scanElement(this._name, "reportReturnSpot"));
	Packages.system.events.StateFulButtonEvent.initialize(evtTargetArr);
}